package com.common.utils;

import org.apache.hadoop.conf.Configuration;

public class ConfigUtils {
	/**
	 * 从classpath加载配置文件
	 * @param conf
	 */
	public static void config(Configuration conf)
	{
	    conf.addResource("core-site.xml");
	    conf.addResource("hbase-site.xml");
	    conf.addResource("hdfs-site.xml");
	    conf.addResource("mapred-site.xml");
	    conf.addResource("ssl-client.xml");
	    conf.addResource("yarn-site.xml");
	}
}
